<template>
<view>
	<view class="list" v-for="(item,index) in list" :key="index" @click="toDetail(item.uid)">
		<view class="left">
			<image :src="item.avatar"></image>
		</view>
		 <view class="info">
			<view class="info_top">
				<text class="name">{{item.realname}}</text>
				<text class="time">{{item.addtime}}</text>
			</view>
			<view class="item"> {{item.sex}} / {{item.age}}岁 / {{item.education}} / {{item.workType}} </view>
			<view class="jobmoney">
				<view>意向职位:<text>{{item.post}}</text>
				</view>
			</view>
		</view>
	</view>
</view>
</template>
<script>
import request from '@/util/request.js'
export default {
	data() {
		return{
			list:[]
		}
	},
	onLoad:function(){
		this.getList()
	},
	methods: {
		getList:function(){
			var data = {
				uid:uni.getStorageSync('uid')
			}
			var that = this
			request({
				url: 'company/push',
				method: 'get',
				data:data,
				success: (res) => {
					that.list = res.data.data
				}
			})
		},
		toDetail:function(uid){
			uni.navigateTo({
				url:'/pages/job/info?uid='+uid
			})
		}
	}
}
</script>
<style>
.list{
	display: flex;
	flex-direction: row;
	border-bottom: 1rpx solid #000;
	padding-top:20rpx;
	padding-bottom: 20rpx;
}
.left{
	width:40%;
	text-align: center;
}
.left image{
	width:200rpx;
	height:200rpx;
	border-radius: 50%;
}
.info {
    width: 55%;
	display: flex;
	flex-direction: column;
}
.name{
    font-weight: bold;
    color:#000;
    font-size:17px;
}
.item{
    margin-top:15rpx;
    color:#000;
}
.info_top{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.name{
	font-weight: bold;
}
.time{
	color:#B30000;
}
.jobmoney{
	margin-top:15rpx;
}
</style>